﻿@model Core_User
@{
    ViewBag.ParentUrl = "/User/Index";
    ViewBag.Title = "修改密码";
}
@section header{
    <style>
        .profile-info-name {
            width: auto;
        }
    </style>
}
@section breadcrumb
{
    <ul class="breadcrumb">
        <li>
            <i class="ace-icon fa fa-home home-icon"></i>
            <a href="/">首页</a>
        </li>
        <li class="active">@ViewBag.Title</li>
    </ul><!-- .breadcrumb -->
}
<div class="col-sm-12">
    <div class="tabbable">
        <ul class="nav nav-tabs padding-16">
            <li class="active">
                <a data-toggle="tab" href="#pwd">
                    <i class="green ace-icon fa fa-key bigger-125"></i>
                    修改密码
                </a>
            </li>
        </ul>

        <form class="form-horizontal" action="/User/EditPwd" method="POST">
            <div class="tab-content profile-edit-tab-content">
                <div id="pwd" class="tab-pane  in active">

                    <div class="row">
                        <div class="col-xs-12">
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right"> 账号 </label>

                                <div class="col-sm-9">
                                    <label>@Model.U_Name</label>
                                    @Html.HiddenFor(o=>o.U_Id)
                                    @Html.HiddenFor(o=>o.U_Name)
                                </div>
                            </div>

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right" > 原密码 </label>

                                <div class="col-sm-9">
                                    @Html.TextBox("oldPwd")
                                </div>
                            </div>

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right"> 新密码 </label>

                                <div class="col-sm-9">
                                    @Html.TextBox("txtNewpwd")

                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right"> 重复新密码 </label>

                                <div class="col-sm-9">
                                    @Html.TextBox("txtNewpwd2")
                                </div>
                            </div>

                            <div class="space-4"></div>

                        </div>
                    </div>
                </div>
            </div>


            <div class="space-4"></div>

            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <button class="btn btn-info" type="submit" id="btnSubmit">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        修改并保存
                    </button>

                    &nbsp; &nbsp;
                    <button class="btn" type="reset">
                        <i class="ace-icon fa fa-undo bigger-110"></i>
                        重置
                    </button>
                    <code>@ViewBag.Tip </code>
                </div>
            </div>
            <div class="hr hr-24"></div>
        </form>
    </div>

</div><!-- /.span -->